<?php
    if(isset($_GET['page']))
    {
        $page = $_GET['page'];
        if($page=='home')
        {
            $incfile = ('pages/home.php');
            $menucurrent = 0;
        }
        else if($page=='footer')
        {
            $incfile = ('pages/footer.php');
            $menucurrent = 1;
        }
        else if($page=='facebook_twitter_email')
        {
            $incfile = ('pages/facebook_twitter_email.php');
            $menucurrent = 2;
        }
        else if($page=='career')
        {
            $incfile = ('pages/career.php');
            $menucurrent = 0;
        }
        else if($page=='contact')
        {
            $incfile = ('pages/contact.php');
            $menucurrent = 9;
        }
        else if($page=='news')
        {
            $incfile = ('pages/news.php');
            $menucurrent = 7;
        }
        else if($page=='recruitment_services')
        {
            $incfile = ('pages/recruitment_services.php');
            $menucurrent = 5;
        }
        else if($page=='translation_interpreter')
        {
            $incfile = ('pages/translation_interpreter.php');
            $menucurrent = 3;
        }
        else if($page=='thai_for_foreigners')
        {
            $incfile = ('pages/thai_for_foreigners.php');
            $menucurrent = 6;
        }
        else if($page=='personnel')
        {
            $incfile = ('pages/personnel.php');
            $menucurrent = 4;
        }
        else if($page=='personnels')
        {
            $incfile = ('pages/personnels.php');
            $menucurrent = 4;
        }
        else if($page=='feedback')
        {
            $incfile = ('pages/feedback.php');
            $menucurrent = 4;
        }
        else if($page=='feedback_from_students')
        {
            $incfile = ('pages/feedback_from_students.php');
            $menucurrent = 10;
        }
        else if($page=='hall_of_fame')
        {
            $incfile = ('pages/hall_of_fame.php');
            $menucurrent = 11;
        }
        else if($page=='songs')
        {
            $incfile = ('pages/songs.php');
            $menucurrent = 12;
        }
        else if($page=='singers')
        {
            $incfile = ('pages/singers.php');
            $menucurrent = 12;
        }
        else if($page=='movies')
        {
            $incfile = ('pages/movies.php');
            $menucurrent = 12;
        }
        else if($page=='course')
        {
            $incfile = ('pages/course.php');
            $menucurrent = 13;
        }
        else if($page=='rate')
        {
            $incfile = ('pages/rate.php');
            $menucurrent = 14;
        }
        else
        {
            $incfile = ('pages/welcome.php');
            $menucurrent = 0;
        }
    }
    else
    {
        $incfile = ('pages/welcome.php');
            $menucurrent = 0;
    }
    
    include('header.php');
    include($incfile);
    include('footer.php');
?>